package com.java.repository;

import cn.hutool.core.date.DateTime;
import com.java.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface ScheduleRespoitory extends MongoRepository<Schedule,String> {
    Schedule getScheduleByHoscodeAndHosScheduleId(String hoscode, String hosScheduleId);

    List<Schedule> findScheduleByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, DateTime dateTime);

    Schedule getScheduleById(String scheduleId);
}
